#include "CAnimation.h"
#include <vector>
using namespace std;

CAnimation::CAnimation(void)
{
}

CAnimation::~CAnimation(void)
{
	DeleteFrames();
	delete this;
}

void CAnimation::AddFrame(CFrame* Frame)
{
	m_vFrames.push_back(Frame);
}

void CAnimation::DeleteFrames()
{
	for(int i = 0; i < m_vFrames.size(); ++i)
	{
		delete m_vFrames[i];
		m_vFrames[i] = NULL;
	}
	m_vFrames.clear();
}
